﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ResetPassword.aspx.cs" Inherits="eVoting.ResetPassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
        <asp:Label ID="lbl_oldPW" runat="server" Text="Old Password"></asp:Label>
        <asp:TextBox ID="txt_oldpw" runat="server" TextMode="Password"></asp:TextBox>
    </p>
    <p>
        <asp:Label ID="lbl_newPW1" runat="server" Text="New Password"></asp:Label>
        <asp:TextBox ID="txt_newPW1" runat="server" TextMode="Password"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txt_newPW1"
                                        ValidationExpression="(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?!.*\s).*$" Display="Dynamic"
                                        ErrorMessage="Password must be 8 characters and have both letters and numbers." />
    </p>
    <p>
        <asp:Label ID="lbl_newPW2" runat="server" Text="Confirm New Password"></asp:Label>
        <asp:TextBox ID="txt_newPW2" runat="server" TextMode="Password"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txt_newPW2"
                                        ValidationExpression="(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?!.*\s).*$" Display="Dynamic"
                                        ErrorMessage="Password must be 8 characters and have both letters and numbers." />
    </p>
    <p>
        <asp:Button ID="btn_submit" runat="server" Text="Submit" 
            onclick="btn_submit_Click" />
    </p>
</asp:Content>
